package com.jiazixuan.stock.mapper;

import com.jiazixuan.stock.pojo.domain.StockBlockDomain;
import com.jiazixuan.stock.pojo.entity.StockBlockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 17127
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2025-08-14 11:17:57
* @Entity com.jiazixuan.stock.pojo.entity.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);

    List<StockBlockDomain> sectorAllLimit(@Param("timePoint") Date timePoint);

    /**
     * 板块信息批量插入
     * @param infos
     * @return
     */
    int insertBatch(@Param("infos") List<StockBlockRtInfo> infos);

    List<StockBlockDomain> getBlockInfoLimit(@Param("timePoint") Date curDate, @Param("number") int i);
}
